@extends('akl.Admin.Base-index')
@section('content')
<script>
	$('#left-bar .nav>li:nth-child(1)>.menu').addClass('on');
</script>
<div class="main-menu fadeInLeft">
	<div class="title">
		<i class="fa fa-file-text-o"></i> 添加文章
	</div>
	<ul class="act-list">
		<li>
			<a href="/Admin/Article/index"><i class="fa fa-plus-square-o"></i>文章列表</a>
		</li>
	</ul>
</div>
<div class="main-wrap fadeInRight">
	<form class="formPanel" action="" enctype="multipart/form-data" method="post" >
		{{ csrf_field()  }}
		<div class="form-group">
			<p style="color: red"><?php
				if(!is_object($errors)){
					echo $errors;
				}?>
			</p>
			<label>文章标题：</label><input type="text" class="input-text" name="title" value="" style="width: 400px;"/>
		</div>
		<div class="form-group">
			<label>缩略图：</label><input type='file'  name='file[]'>
		</div>
		<div class="form-group">
			<label>所属分类：</label>
			<input name="class">
		</div>
		<div class="form-group">
			<label>婚礼地点：</label>
			<input name="location">
		</div>

    <!-- 加载编辑器的容器 -->
    <script id="container" name="content" type="text/plain">

    </script>
    <!-- 配置文件 -->
    <script type="text/javascript" src="/akl/Ueditor/ueditor.config.js"></script>
    <!-- 编辑器源码文件 -->
    <script type="text/javascript" src="/akl/Ueditor/ueditor.all.js"></script>
    <!-- 实例化编辑器 -->
    <script type="text/javascript">
		var ue = UE.getEditor('container', {
			autoHeightEnabled: true,
			autoFloatEnabled: true,
			initialFrameWidth : 900,
			initialFrameHeight: 600
		});
    </script>
    <input class="save-btn" type="submit" name="send" value="提交文章" />
</form>
</div>
@endsection